/*
 * Created on Nov 30, 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package MethodCatcher;

import java.lang.reflect.Method;

/**
 * @author Jayanth Recherla
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class MethodObject {
	Method method;
	Object[] args;
	
	public MethodObject(){
		this(null,null);
	}
	
	public MethodObject(Method method){
		this(method,null);
	}
	
	public MethodObject(Object[] args){
		this(null,args);
	}
	
	public MethodObject(Method method, Object[] args){
		this.method = method;
		this.args = args;
	}
	
	
	/**
	 * @return Returns the args.
	 */
	public Object[] getArgs() {
		return args;
	}
	/**
	 * @param args The args to set.
	 */
	public void setArgs(Object[] args) {
		this.args = args;
	}
	/**
	 * @return Returns the method.
	 */
	public Method getMethod() {
		return method;
	}
	/**
	 * @param method The method to set.
	 */
	public void setMethod(Method method) {
		this.method = method;
	}
}
